﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.CustomerProfileConfig.Dto
{
    /// <summary>
    /// 客户档案 保存dto
    /// </summary>
    public class SaveCustomerProfileConfigInput
    {
        /// <summary>
        /// 唯一ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public string AddUserName { get; set; }

        /// <summary>
        /// 最新修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 最新修改人
        /// </summary>
        public string UpdateUserName { get; set; }

        /// <summary>
        /// 事业部类型
        /// </summary>
        public string Business { get; set; }

        /// <summary>
        /// 行业
        /// </summary>
        public string Industry { get; set; }

        /// <summary>
        /// 区域
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        /// 客户类型
        /// </summary>
        public string CustomerType { get; set; }

        /// <summary>
        /// 客户代码
        /// </summary>
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 送达方代码
        /// </summary>
        public string SDFCode2 { get; set; }

        /// <summary>
        /// 送达方名称
        /// </summary>
        public string SDFName2 { get; set; }

        /// <summary>
        /// 产线名称
        /// </summary>
        public string ProductionLine { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName{ get; set; }

        /// <summary>
        /// 客户归属
        /// </summary>
        public string CustomerAttribution { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string State { get; set; }

        /// <summary>
        /// 建浴（混槽）日期
        /// </summary>
        public string JYDate { get; set; }

        /// <summary>
        /// 投槽/混槽
        /// </summary>
        public string TCORHC { get; set; }

        /// <summary>
        /// 客户省份
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        /// 客户城市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 标准槽液检测频次/月
        /// </summary>
        public string TestingFrequency { get; set; }

        /// <summary>
        /// 技术担当账号
        /// </summary>
        public string JSDDCode { get; set; }

        /// <summary>
        /// 技术担当名称
        /// </summary>
        public string JSDDName { get; set; }

        /// <summary>
        /// 销售担当账号
        /// </summary>
        public string XSDDCode { get; set; }

        /// <summary>
        /// 销售担当名称
        /// </summary>
        public string XSDDName { get; set; }

        /// <summary>
        /// 子表-检测指标配置
        /// </summary>
        public List<InnerDetail> InnerDetails { get; set; }

    }

    public class InnerDetail
    {

        /// <summary>
        /// 唯一ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int SortNo { get; set; }
        /// <summary>
        /// 实验项目1
        /// </summary>
        public string Project1 { get; set; }

        /// <summary>
        /// 实验项目2
        /// </summary>
        public string Project2 { get; set; }

        /// <summary>
        /// 实验项目3
        /// </summary>
        public string Project3 { get; set; }

        /// <summary>
        /// 最小值
        /// </summary>
        public string MinValue { get; set; }

        /// <summary>
        /// 最大值
        /// </summary>
        public string MaxValue { get; set; }

        /// <summary>
        /// 标准值
        /// </summary>
        public string StandardValue { get; set; }

        /// <summary>
        /// 是否启用项
        /// </summary>
        public string IsEnable { get; set; }
    }
}
